package cn.tedu.medicalappointmentsystemk.dao.persist.mapper;

import cn.tedu.medicalappointmentsystemk.pojo.bo.ScheduleSelectAllBO;
import cn.tedu.medicalappointmentsystemk.pojo.bo.ScheduleSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.SchedulePO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.mapstruct.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface ScheduleMapper extends BaseMapper<SchedulePO> {
    String selectDutyShift(Long doctorId, Date createDate);

    Page<ScheduleSelectBO> selectByDateList(List<Date> dateList);

    Page<ScheduleSelectAllBO> selectAll();

    Page<ScheduleSelectAllBO> searchLastMonth();

    Page<ScheduleSelectAllBO> searchLastWeek();

    Page<ScheduleSelectAllBO> searchToday();

    List<ScheduleSelectAllBO> selectByNickname(String nickname);
}
